<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="common/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="common/css/loading.css" />
		<script src="common/js/av-min-2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			* {
				padding: 0px;
				margin: 0px;
			}
			
			body {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				background-color: #F3F5F7;
				font-family: "微软雅黑";
			}
			
			.header {
				height: 45px;
				line-height: 45px;
				background: white;
				color: #616161;
				font-size: 18px;
				text-align: center;
			}
			
			.header>.icon:nth-child(1) {
				width: 20px;
				float: left;
				margin-left: 10px;
			}
			
			.header>.icon:nth-child(2) {
				width: 20px;
				float: right;
				margin-right: 20px;
			}
			
			.banner {
				display: -webkit-box;
				margin: 5px 0;
				height: 120px;
			}
			
			.banner img {
				display: -webkit-box;
				width: 100%;
			}
			
			.productlist {
				margin: 0 5px;
				overflow: hidden;
				/*border: 1px solid;*/
			}
			
			.productlist .item {
				width: 49.2%;
				overflow: hidden;
				background-color: white;
				margin-top: 5px;
			}
			
			.productlist .item:nth-child(2n-1) {
				float: left;
			}
			
			.productlist .item:nth-child(2n) {
				float: right;
			}
			
			.productlist .item .pic {
				width: 100%;
				overflow: hidden;
			}
			
			.productlist .item .pic img {
				width: 98%;
				display: block;
				margin: 0px auto;
			}
			
			.productlist .item .title {
				display: -webkit-box;
				height: 35px;
				line-height: 17px;
				margin-top: 3px;
				padding: 0 3px;
				font-size: 13px;
				color: #666;
				overflow: hidden;
				text-overflow: ellipsis;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				word-break: break-all;
			}
			
			.productlist .item .price {
				display: -webkit-box;
				-webkit-box-pack: justify;
				-webkit-box-align: center;
				font-size: 14px;
			}
			
			.productlist .item .icon {
				color: #F02B2B;
				font-size: 20px;
				margin-right: 5px;
			}
			
			.info {
				display: -webkit-box;
				height: 40px;
				color: #666666;
				-webkit-box-pack: center;
				-webkit-box-align: center;
			}
		</style>
	</head>

	<body>
		<div class="csshub-loading" v-if="isLoading">
			<span></span>
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div v-if="!isLoading">
			<div class="header">
				<i class="icon Hui-iconfont" @click="myType">&#xe6d4;</i>商品分类
				<i class="icon Hui-iconfont" @click="myCart">&#xe6b9;</i>
			</div>
			<div class="banner">
				<img src="img/58db7987N29f6f269.jpg!q50.jpg.webp" />
			</div>
			<div class="productlist">
				<div class="item" v-for="item in productSearch" @click="detail(item.attributes.pid)">
					<div class="pic"><img v-bind:src="item.attributes.image[0]" /></div>
					<div class="title" v-html="item.attributes.title"></div>
					<div class="price">
						<div style="display: -webkit-box;">￥
							<div v-html="item.attributes.price[0]"></div>
						</div>
						<div class="icon Hui-iconfont" @click="cart($index)">&#xe670;</div>
					</div>
				</div>
			</div>
			<div class="info">
				没有更多数据了
			</div>
		</div>
		<script src="common/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/fastclick.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				FastClick.attach(document.body);
			});
		</script>
		<script src="common/js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="vue/searchVue.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>